<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lijincheng
  Date: 2020/7/14
  Time: 3:31 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/views/common/head.jsp"%>
<div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户信息查看页面</span>
        </div>
        <div class="providerView">
            <p><strong>用户编号：</strong><span>${user_view.get("userCode")}</span></p>
            <p><strong>用户名称：</strong><span>${user_view.get("userName")}</span></p>
            <p><strong>用户性别：</strong>
                <span>
            		<c:if test="${user_view.get('gender')==1}">
                        女
                    </c:if>
                    <c:if test="${user_view.get('gender')==2}">
                        女
                    </c:if>
				</span>
            </p>
            <p><strong>出生日期：</strong><span id="birthday"></span></p>
            <p><strong>用户电话：</strong><span>${user_view.get("phone")}</span></p>
            <p><strong>用户地址：</strong><span>${user_view.get("address")}</span></p>
            <p><strong>用户角色：</strong><span>${user_view.get("roleName")}</span></p>
            <p><strong>个人证件照：</strong><span>
            	 	<a href="/upload/${p.phontoName1}">点击查看</a>
            </span></p>
            <p><strong>工作证照片：</strong><span>


            	 	<a href="/upload/${p.phontoName2}">点击查看</a>



            </span></p>
            <div class="providerAddBtn">
                <input type="button" id="back" name="back" onclick="backBtn()" value="返回" >
            </div>
        </div>
    </div>
</section>


<footer class="footer">
    千峰科技
</footer>
<script type="text/javascript" src="/statics/js/time.js"></script>
<script type="text/javascript" src="/statics/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/statics/js/common.js"></script>
<script type="text/javascript" src="/statics/calendar/WdatePicker.js"></script>
<script>
    function formatDate(now) {
        var year=now.getFullYear();  //取得4位数的年份
        var month=now.getMonth()+1;  //取得日期中的月份，其中0表示1月，11表示12月
        var date=now.getDate();
        return year+"-"+month+"-"+date;
    }
    $("#birthday").text(formatDate(new Date(${user_view.get("birthday")})));
    function backBtn() {
        window.location.href="/user/list";
    }
</script>
</body>
</html>
